Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cli overhaul: snapshot #212

Merged
merged 15 commits into from
Oct 26, 2022
Merged

Conversation

Tinyblargon
Copy link
Collaborator

Another pull for #171

Work so far:

  • Added the commands for creating, deleting, updating, listing and rolling back snapshots.
  • Marked function names as deprecated as they implied that the snapshot functions only work with Qemu virtual machines.
  • Changed output of list snapshots to a json tree and list depending on the --no-tree flag
  • Added unit test for testing the formatting when listing a guests snapshot.
  • Added integration tests for snapshot function.
  • Manually tested the legacy commands still work as intended.
  • Expanded the (test *Test) StandardTest(t *testing.T) (out []byte) to be able to return the json output for more advanced processing.

Deprecated all the snapshot functions and added new ones. As the qemu in the function name implies it doesn't work for LXC.
Adding a command that allows for all setting to be used regarding snapshots
the implementation of building the tree structure in FormatSnapshotsTree() can probably be inproved.
Renamed ValidateIDset() to RequiredIDset() and added a description to the function. Changed the indexPos to uint as this value should never be negative.
@mleone87 mleone87 merged commit d2e73eb into Telmate:master Oct 26, 2022
frostyfab pushed a commit to frostyfab/proxmox-api-go that referenced this pull request Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants